<!DOCTYPE html>
<html>
  <head>
    <title>所有家教</title>
    <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
    <meta http-equiv="content-type" content="text/html; charset=utf-8"/>
    <meta name="apple-mobile-web-app-capable" content="yes"/>
    <link href="resources/css/jquery-ui-themes.css" type="text/css" rel="stylesheet"/>
    <link href="resources/css/axure_rp_page.css" type="text/css" rel="stylesheet"/>
    <link href="data/styles.css" type="text/css" rel="stylesheet"/>
    <link href="files/所有家教/styles.css" type="text/css" rel="stylesheet"/>
    <script src="resources/scripts/jquery-1.7.1.min.js"></script>
    <script src="resources/scripts/jquery-ui-1.8.10.custom.min.js"></script>
    <script src="resources/scripts/prototypePre.js"></script>
    <script src="data/document.js"></script>
    <script src="resources/scripts/prototypePost.js"></script>
    <script src="files/所有家教/data.js"></script>
    <script type="text/javascript">
      $axure.utils.getTransparentGifPath = function() { return 'resources/images/transparent.gif'; };
      $axure.utils.getOtherPath = function() { return 'resources/Other.html'; };
      $axure.utils.getReloadPath = function() { return 'resources/reload.html'; };
    </script>
  </head>
  <body>
    <div id="base" class="">

      <!-- Unnamed (矩形) -->
      <div id="u25" class="ax_default _一级标题">
        <div id="u25_div" class=""></div>
        <div id="u25_text" class="text ">
          <p><span>我的家教</span></p>
        </div>
      </div>

      <!-- Unnamed (组 合) -->
      <div id="u29" class="ax_default" data-left="0" data-top="169" data-width="980" data-height="141">

        <!-- Unnamed (水平线) -->
        <div id="u30" class="ax_default line">
          <img id="u30_img" class="img " src="images/主页/u23.png"/>
        </div>

        <!-- Unnamed (水平线) -->
        <div id="u31" class="ax_default line">
          <img id="u31_img" class="img " src="images/主页/u23.png"/>
        </div>

        <!-- Unnamed (垂直线) -->
        <div id="u32" class="ax_default line">
          <img id="u32_img" class="img " src="images/所有家教/u32.png"/>
        </div>

        <!-- Unnamed (垂直线) -->
        <div id="u33" class="ax_default line">
          <img id="u33_img" class="img " src="images/所有家教/u32.png"/>
        </div>

        <!-- Unnamed (垂直线) -->
        <div id="u34" class="ax_default line">
          <img id="u34_img" class="img " src="images/所有家教/u32.png"/>
        </div>
      </div>

      <!-- 类型 (组 合) -->
	  <a href="我的家教已报名.php">
      <div id="u35" class="ax_default" data-label="类型" data-left="0" data-top="175" data-width="234" data-height="129">

        <!-- Unnamed (矩形) -->
        <div id="u36" class="ax_default box_1">
          <div id="u36_div" class=""></div>
        </div>
		
        <!-- Unnamed (矩形) -->
        <div id="u37" class="ax_default _二级标题">
          <div id="u37_div" class=""></div>
          <div id="u37_text" class="text ">
            <p><span>已报名</span></p>
          </div>
        </div>

      </div>
		</a>
      <!-- 区域 (组 合) -->
	  <a href="我的家教已录用.php">
      <div id="u39" class="ax_default" data-label="区域" data-left="254" data-top="175" data-width="234" data-height="129">

        <!-- Unnamed (矩形) -->
        <div id="u40" class="ax_default box_1">
          <div id="u40_div" class=""></div>
        </div>

        <!-- Unnamed (矩形) -->
        <div id="u41" class="ax_default _二级标题">
          <div id="u41_div" class=""></div>
          <div id="u41_text" class="text ">
            <p><span>已录用</span></p>
          </div>
        </div>

      </div>
		</a>
      <!-- 排序 (组 合) -->
	  <a href="我的家教已到岗.php">
      <div id="u43" class="ax_default" data-label="排序" data-left="498" data-top="175" data-width="234" data-height="129">

        <!-- Unnamed (矩形) -->
        <div id="u44" class="ax_default box_1">
          <div id="u44_div" class=""></div>
        </div>

        <!-- Unnamed (矩形) -->
        <div id="u45" class="ax_default _二级标题">
          <div id="u45_div" class=""></div>
          <div id="u45_text" class="text ">
            <p><span>已到岗</span></p>
          </div>
        </div>

      </div>
		</a>
      <!-- 筛选 (组 合) -->
	  <a href="我的家教已完成.php">
      <div id="u47" class="ax_default" data-label="筛选" data-left="746" data-top="175" data-width="234" data-height="129">

        <!-- Unnamed (矩形) -->
        <div id="u48" class="ax_default box_1">
          <div id="u48_div" class=""></div>
        </div>

        <!-- Unnamed (矩形) -->
        <div id="u49" class="ax_default _二级标题">
          <div id="u49_div" class=""></div>
          <div id="u49_text" class="text ">
            <p><span>已完成</span></p>
          </div>
        </div>
      </div>
		</a>
      <!-- 全部家教内容 (动态面板) -->
      <div id="u50" class="ax_default" data-label="全部家教内容">
        <div id="u50_state0" class="panel_state" data-label="State1" style="">
          <div id="u50_state0_content" class="panel_state_content">

           <!-- Unnamed (矩形) -->
           <div id="u51" class="ax_default label">
             <div id="u51_div" class=""></div>
             <div id="u51_text" class="text ">
              <table>
              	<?php 
				require("../../../conn/conn.php");
				//读取配置文件id信息
				$fp = fopen("../../../config/stu_id.txt",'r');
				$id = fgets($fp);
				fclose($fp);
					//只显示未被接取的任务
					$sql = "select * from work_info where stu_id = $id";
					$result = mysqli_query($conn,$sql);
					$work_info = array();
					while($row = mysqli_fetch_assoc($result)){
						$work_info[] = $row;
					} 
              	foreach($work_info as $row){ 
              		if($row['par_id']){?>
					<form action="../../detail/work_detail/html/index.php" method="post">
						<div style="width: 980px;">
							<p style="float: right;" style="font-size: 50px;"><?= $row['work_price']; ?>元/天</p>
							<h1 align="left"><?=$row['work_name']; ?></h1>
							<p ><?= $row['work_place'];?></p>
							
							<!-- 将该段段id提交给php-->
							
							<input type="hidden" value="<?= $row['work_id'];?>" name="id">
							<input type="submit" name="sub" value="了解详情" style="zoom: 250%;">
							<hr>
							</form>
							
						</div>
					<?php }} ?>
              </table>
             </div>
           </div>
          </div>
        </div>
      </div>

      <!-- 导航栏 (组 合) -->
      <div id="u52" class="ax_default" data-label="导航栏" data-left="0" data-top="1951" data-width="980" data-height="171">

        <!-- Unnamed (形状) -->
        <div id="u53" class="ax_default icon">
          <img id="u53_img" class="img " src="images/主页/u18.png"/>
        </div>

        <!-- Unnamed (形状) -->
        <div id="u54" class="ax_default icon">
          <img id="u54_img" class="img " src="images/主页/u19.png"/>
        </div>

        <!-- Unnamed (形状) -->
        <div id="u55" class="ax_default icon">
          <img id="u55_img" class="img " src="images/所有家教/u55.png"/>
        </div>

        <!-- Unnamed (形状) -->
        <div id="u56" class="ax_default icon">
          <img id="u56_img" class="img " src="images/主页/u21.png"/>
        </div>

        <!-- Unnamed (形状) -->
        <div id="u57" class="ax_default icon">
          <img id="u57_img" class="img " src="images/我的家教/u89.png"/>
        </div>

        <!-- Unnamed (水平线) -->
        <div id="u58" class="ax_default line">
          <img id="u58_img" class="img " src="images/主页/u23.png"/>
        </div>

        <!-- Unnamed (矩形) -->
        <div id="u59" class="ax_default box_1">
          <div id="u59_div" class=""></div>
        </div>
      </div>
    </div>
  </body>
</html>
